﻿using System;

namespace ChessKit.Common
{
  [Flags]
  public enum BoardArea
  {
    Unknown = 0,
    Cell = 0x1,
    Row = 0x2, Column = 0x4,
    TopEdgeCell = 0x8, RightEdgeCell = 0x10, LeftEdgeCell = 0x20, BottomEdgeCell = 0x40,
    TopLeftCorner = 0x80, TopRightCorner = 0x100, BottomLeftCorner = 0x200, BottomRightCorner = 0x400,
    Background = 0x800,
    Short = 0x1000,

    ShortRow = Short | Row, ShortColumn = Short | Column, 
    Line = Row | Column,
    LeftSide = LeftEdgeCell | TopLeftCorner | BottomLeftCorner,
    RightSide = RightEdgeCell | TopRightCorner | BottomRightCorner,
    TopSide = TopEdgeCell | TopLeftCorner | TopRightCorner,
    BottomSide = BottomEdgeCell | BottomLeftCorner | BottomRightCorner,
    Edge = TopEdgeCell | RightEdgeCell | LeftEdgeCell | BottomEdgeCell,
    Corner = TopLeftCorner | TopRightCorner | BottomRightCorner | BottomLeftCorner
  }
}